package org.xiaojl.modules.sys.entity;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import org.xiaojl.utils.ToolUtil;
import com.baomidou.mybatisplus.annotations.TableName;
import org.xiaojl.common.base.BaseEntity;

/**
 * <p>
 * 系统模块表
 * </p>
 *
 * @author xiaojl
 * @since 2017-08-31
 */
@TableName("sys_module")
public class SysModule extends BaseEntity<SysModule> {

    private static final long serialVersionUID = 1L;

    /**
     * 模块名称
     */
	private String name;
    /**
     * 启用状态
     */
	private Long status;
    /**
     * 备注
     */
	private String remark;
	/**
	 * 排序序号
	 */
	private Long seq;

	@Override
	public Wrapper<SysModule> bindingQueryWrapper() {
		Wrapper<SysModule> wrapper = new EntityWrapper<SysModule>();
		if(ToolUtil.isNotEmpty(this.name)){
			wrapper.like("name", this.name);
		}
		if(ToolUtil.isNotEmpty(this.remark)){
			wrapper.like("remark", this.remark);
		}
		return wrapper;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getSeq() {
		return seq;
	}

	public void setSeq(Long seq) {
		this.seq = seq;
	}
	
}
